"""
存放共享变量和进程锁
"""

import multiprocessing

from numpy import matrixlib

locklock = multiprocessing.Manager().Lock()
locklock2 = multiprocessing.Manager().Lock()
locklock3 = multiprocessing.Manager().Lock()

lock_serial = multiprocessing.Manager().Lock()

y_detect_model =  multiprocessing.Value("i", 0) # 用作DetectModel和main进程之间的通信
x_detect_model =  multiprocessing.Value("i", 0) # 用作DetectModel和main进程之间的通信

STOPPED_cam_front = multiprocessing.Value("i", False)
STOPPED_cam_left =  multiprocessing.Value("i", False)
STOPPED_cam_right =  multiprocessing.Value("i", False)

STATUS_detect = multiprocessing.Value("i", True)
RESULT_INDEX_detect = multiprocessing.Value("i", True)
STOPPED_cruise = multiprocessing.Value("i", False)
